<template>
	<div>
		<sh-card title="基本用法" class="mb-3">
			<sh-calendar />
		</sh-card>
		<sh-card title="开启农历与代办" class="mb-3">
			<sh-calendar note footer festival align="left" note-height="44px" :note-method="noteMethod" />
		</sh-card>
	</div>
</template>

<script>
export default {
	name: 'BaseCalendar',
	methods: {
		noteMethod(item) {
			const format = 'yyyyMMdd'
			if (this.$vUtils.isDateSame('2023-10-01', item.date, format)) {
				return '国庆节'
			} else if (this.$vUtils.isDateSame('2023-09-29', item.date, format)) {
				return '中秋节'
			}
		}
	}
}
</script>

<style scoped lang="scss"></style>
